<!-- <div class="page-container edit-container"> -->
<div class="page-container edit-container">
	<div class="loading-body" *ngIf="isPosting">
		<mdl-spinner *ngIf="isPosting" single-color active></mdl-spinner>
	</div>
	<div class="edit-header">
		<a routerLink="/project" mdl-ripple mdl-button>
			<i class="material-icons">keyboard_backspace</i> 返回
		</a>
		<!-- <mdl-layout-title>{{ IsEdit ? '编辑' : '添加' }}项目</mdl-layout-title> -->
		<div class="space"></div>
	</div>
	<mdl-layout-title>{{ IsEdit ? '编辑' : '添加' }}项目</mdl-layout-title>
	<dynamic-form #projectForm (getPlayLoad)="onLoadFormData($event)" [ctrls]="formControls">

	</dynamic-form>
	<mdl-spinner *ngIf="isFormPosting" single-color active></mdl-spinner>
	<button mdl-ripple mdl-button mdl-button-type="raised" [disabled]="!projectForm.form.valid || isFormPosting" (click)="save(projectForm)"
	 mdl-colored="primary">
			<i class="material-icons">done</i>保存
		</button>
	<!-- <a routerLink="/project" mdl-ripple mdl-button mdl-button-type="raised" mdl-colored="accent">
		    <i class="material-icons">keyboard_arrow_left</i> 返回
	  	</a> -->
</div>
<!-- </div> -->